import 'package:flutter/material.dart';
import 'app_colors.dart';

/// 应用文本样式
/// 为浅色和深色模式提供一致的文本样式
class AppTextStyles {
  // 浅色模式文本样式
  static TextStyle lightHeadline1 = const TextStyle(
    fontSize: 24,
    fontWeight: FontWeight.bold,
    color: AppColors.lightText,
    letterSpacing: 0.15,
  );

  static TextStyle lightHeadline2 = const TextStyle(
    fontSize: 22,
    fontWeight: FontWeight.bold,
    color: AppColors.lightText,
    letterSpacing: 0.15,
  );

  static TextStyle lightHeadline3 = const TextStyle(
    fontSize: 20,
    fontWeight: FontWeight.bold,
    color: AppColors.lightText,
    letterSpacing: 0.15,
  );

  static TextStyle lightSubtitle1 = const TextStyle(
    fontSize: 18,
    fontWeight: FontWeight.w500,
    color: AppColors.lightText,
    letterSpacing: 0.15,
  );

  static TextStyle lightSubtitle2 = const TextStyle(
    fontSize: 16,
    fontWeight: FontWeight.w500,
    color: AppColors.lightText,
    letterSpacing: 0.15,
  );

  static TextStyle lightBodyText1 = const TextStyle(
    fontSize: 16,
    fontWeight: FontWeight.normal,
    color: AppColors.lightText,
    letterSpacing: 0.5,
  );

  static TextStyle lightBodyText2 = const TextStyle(
    fontSize: 14,
    fontWeight: FontWeight.normal,
    color: AppColors.lightText,
    letterSpacing: 0.25,
  );

  static TextStyle lightCaption = const TextStyle(
    fontSize: 12,
    fontWeight: FontWeight.normal,
    color: AppColors.lightTextSecondary,
    letterSpacing: 0.4,
  );

  static TextStyle lightButton = const TextStyle(
    fontSize: 16,
    fontWeight: FontWeight.w500,
    color: Colors.white,
    letterSpacing: 0.5,
  );

  // 深色模式文本样式
  static TextStyle darkHeadline1 = const TextStyle(
    fontSize: 24,
    fontWeight: FontWeight.bold,
    color: AppColors.darkText,
    letterSpacing: 0.15,
  );

  static TextStyle darkHeadline2 = const TextStyle(
    fontSize: 22,
    fontWeight: FontWeight.bold,
    color: AppColors.darkText,
    letterSpacing: 0.15,
  );

  static TextStyle darkHeadline3 = const TextStyle(
    fontSize: 20,
    fontWeight: FontWeight.bold,
    color: AppColors.darkText,
    letterSpacing: 0.15,
  );

  static TextStyle darkSubtitle1 = const TextStyle(
    fontSize: 18,
    fontWeight: FontWeight.w500,
    color: AppColors.darkText,
    letterSpacing: 0.15,
  );

  static TextStyle darkSubtitle2 = const TextStyle(
    fontSize: 16,
    fontWeight: FontWeight.w500,
    color: AppColors.darkText,
    letterSpacing: 0.15,
  );

  static TextStyle darkBodyText1 = const TextStyle(
    fontSize: 16,
    fontWeight: FontWeight.normal,
    color: AppColors.darkText,
    letterSpacing: 0.5,
  );

  static TextStyle darkBodyText2 = const TextStyle(
    fontSize: 14,
    fontWeight: FontWeight.normal,
    color: AppColors.darkText,
    letterSpacing: 0.25,
  );

  static TextStyle darkCaption = const TextStyle(
    fontSize: 12,
    fontWeight: FontWeight.normal,
    color: AppColors.darkTextSecondary,
    letterSpacing: 0.4,
  );

  static TextStyle darkButton = const TextStyle(
    fontSize: 16,
    fontWeight: FontWeight.w500,
    color: Colors.white,
    letterSpacing: 0.5,
  );
}
